package com.pjnkj.thunder.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author pjnkj
 * @since 2022-02-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("setting")
@ApiModel(value = "Setting对象", description = "")
public class Setting extends Model<Setting> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "设置主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "设置名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "设置值")
    @TableField("value")
    private String value;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
